<div class="panelBar">
	<ul class="toolBar">
		<li><a class="add" href="javascript:;" url="entity/add_reply.html?comment_id={comment_id}&content=" target="dialog" rel="addReply" mask="true" callback="reply" title="添加回复" width="700" height="500"><span>添加回复</span></a></li>
		<li><a class="delete" url="/reply/{reply_id}" area="tbody.list" callback="$this.parents('.panelBar').next().find('>table.list').removeAttr('loaded').jBinds()" type="delete" target="navTabTodo" title="确定要删除选中的数据吗？" warn="请选择需要删除的数据项！"><span>删除</span></a></li>
	</ul>
</div>
<div class="tableList">
	<table class="list" width="100%">
		<thead>
			<tr>
				<th width="25"><input type="checkbox" name="objectId" value="reply_id"/></th>
				<th width="30">编号</th>
				<th width="120">标题</th>
				<th width="60">是否已读</th>
				<th>内容</th>
				<th width="60">用户名</th>
				<th width="125">日期</th>
				<th width="30">操作</th>
			</tr>
		</thead>
		<tbody class="templet">
			<tr reply_id="${reply_id}" put="/reply/${reply_id}">
				<td><input type="checkbox" name="reply_id" value="${reply_id}" /></td>
				<td>${num}</td>
				<td class="edit" field="title" validator="required">${title}</td>
				<td class="edit" field="readed" >${readed}</td>
				<td class="edit" field="content" validator="required" title="${content}">${content}</td>
				<td title="${username}">${user_name}</td>
				<td title="${create_date}">${create_date}</td>
				<td>
					<a href="javascript:;" url="entity/add_reply.html?comment_id={comment_id}&content=${content}" target="dialog" rel="referenceReply" mask="true" callback="reply" title="引用回复" width="700" height="500">
						引用
					</a>
				</td>
			</tr>
		</tbody>
		<tbody class="list" action="comment/{comment_id}/reply">
		</tbody>
	</table>
</div>
<script>
function reply(data,jDom){
	if(!data||data.length==0) return;
	var tb = jDom.parents('.panelBar').next().find('>table.list');
	var url = $("tbody.list",tb).attr("action");
	DWZ.get(url,function(){
		tb.removeAttr('loaded').jBinds();
	})
}
</script>